package com.zryc.shop.sms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zryc.shop.sms.entity.HomeBrand;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 首页推荐品牌表 服务类
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
public interface IHomeBrandService extends IService<HomeBrand> {

    /**
     * 分页查询
     *
     * @param brandName
     * @param recommendStatus
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<HomeBrand> list(String brandName, Integer recommendStatus, Integer pageNum, Integer pageSize);

    /**
     * 设置推荐/取消
     *
     * @param ids
     * @param recommendStatus
     * @return
     */
    Object updateRecommendStatus(String ids, Integer recommendStatus);

    /**
     * 设置设置推荐排序值
     *
     * @param id
     * @param sort
     * @return
     */
    Object updateSort(Long id, Integer sort);
}
